<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<body>
<table class="table">
    <tr>
        <th>主键ID</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>商品图片</th>
        <th>商品链接</th>
        <th>操作</th>
    </tr>
    @foreach($data as $key=>$v)
    <tr>
        <td>{{$v->goods_id}}</td>
        <td>{{$v->goods_name}}</td>
        <td>{{$v->goods_price}}</td>
        <td><img src="{{$v->goods_img}}" alt="" width="100px" height="50px"></td>
        <td>{{$v->goods_mags}}</td>
        <td>
            <a href="del-goods-data?id={{$v->goods_id}}">删除</a>
        </td>
    </tr>
    @endforeach
</table>
</body>
</html>
{{ $data->links() }}